<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var a='beijing'
		var t	=a.substr(a.length-1,1)
			console.log(t)
		</script>
	</body>
</html>
